package xyz.xtt.asset.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 资产实体卡表
 * </p>
 *
 * @author author
 * @since 2025-02-25
 */
@Builder
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tbl_asset_card")
@ApiModel(value = "TblAssetCard对象", description = "资产实体卡表")
public class TblAssetCard implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "主键")
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	@ApiModelProperty(value = "关联资产主键")
	private Long assetId;

	@ApiModelProperty(value = "拥有人id")
	private Long ownerId;

	@ApiModelProperty(value = "卡号")
	private Long cardNo;

	@ApiModelProperty(value = "作废状态0未作废1已作废")
	private Integer destoryState;

	@ApiModelProperty(value = "领取状态0未领取1已领取")
	private Integer receiveState;

	@ApiModelProperty(value = "领取时间")
	private Long receiveTime;

	@ApiModelProperty(value = "创建时间")
	private LocalDateTime createTime;

	@ApiModelProperty(value = "更新时间")
	private LocalDateTime updateTime;

	@ApiModelProperty(value = "资产编号")
	private String assetNo;

	@ApiModelProperty(value = "资产编号表id")
	private long assetNoId;

}
